package com.app.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * base data test mapper
 *
 * @author ch
 * @date 2023/1/13 15:06
 */
@Mapper
public interface BaseDataTestMapper {

    /**
     * 执行原生插入sql
     *
     * @param sql sql语句
     * @return 执行结果
     */
    @Insert({"${sql}"})
    int executeInsertSql(@Param("sql") String sql);

    void executeCreateTableSql(@Param("tableName") String tableName, @Param("rowSql") String rowSql);
}
